package com.george.auth.constants;

import lombok.Data;

/**
 * @title: TokenConstants.java
 * @description:
 * @author: George
 * @date: 2023/6/13 15:24
 */
@Data
public class TokenConstants {
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "auth_login_tokens:";

    /**
     * 验证码缓存 redis key
     */
    public static final String VERIFY_CODE_KEY = "auth_verify_code:";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    public static final String LOGIN_TOKEN_CHANNEL_KEY = "login_token_channel";

    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌秘钥，加密jwt，防止被外部获取解密拿到用户信息
     */
    public static final String JWT_SECRET = "black-unique-abc-efg-hij";

    /**
     * 登录密码加密秘钥
     */
    public static final String AES_SECRET = "black-unique1234";

    /**
     * 登录密码加密算法
     */
    public static final String AES_WAY = "AES/ECB/PKCS5Padding";

}
